package a.j;

import java.awt.*;

public abstract class jf
  extends gf
{
  private Point2D.Double m = new Point2D.Double();
  private Rectangle2D.Double G = new Rectangle2D.Double();
  public static int H;
  
  public jf(df paramdf)
  {
    super(paramdf);
  }
  
  public jf() {}
  
  public void mousePressedLeft(double paramDouble1, double paramDouble2)
  {
    b(paramDouble1, paramDouble2);
  }
  
  void b(double paramDouble1, double paramDouble2)
  {
    this.m = new Point2D.Double(paramDouble1, paramDouble2);
    this.G = new Rectangle2D.Double(paramDouble1, paramDouble2, 0.0D, 0.0D);
    this.i.e(2);
    this.i.b(this.G);
    a(true);
  }
  
  public void b()
  {
    if (!ld.E)
    {
      if (a())
      {
        this.i.e(0);
        this.i.b();
        a(false);
      }
    }
    else {
      g();
    }
  }
  
  public void mouseShiftPressedLeft(double paramDouble1, double paramDouble2)
  {
    b(paramDouble1, paramDouble2);
  }
  
  public void mouseDraggedLeft(double paramDouble1, double paramDouble2)
  {
    c(paramDouble1, paramDouble2);
    this.i.b(this.G);
    this.i.b();
  }
  
  public void mouseReleasedLeft(double paramDouble1, double paramDouble2)
  {
    this.i.e(0);
    a(new Rectangle2D.Double(this.G.x, this.G.y, this.G.width, this.G.height), false);
    a(false);
    g();
  }
  
  public void mouseShiftReleasedLeft(double paramDouble1, double paramDouble2)
  {
    this.i.e(0);
    a(new Rectangle2D.Double(this.G.x, this.G.y, this.G.width, this.G.height), true);
    a(false);
    g();
  }
  
  public void mouseReleasedRight(double paramDouble1, double paramDouble2)
  {
    mouseReleasedLeft(paramDouble1, paramDouble2);
  }
  
  protected Rectangle2D.Double c(double paramDouble1, double paramDouble2)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    Rectangle2D.Double localDouble = this.G;
    if (!bool2)
    {
      if (paramDouble1 < this.m.x)
      {
        localDouble.width = (this.m.x - paramDouble1);
        localDouble.x = paramDouble1;
        if (bool2) {
          break label119;
        }
        if (!bool1) {
          break label110;
        }
      }
      if (bool2) {}
    }
    else if (localDouble.x < this.m.x)
    {
      localDouble.x = this.m.x;
    }
    localDouble.width = (paramDouble1 - this.m.x);
    label110:
    label119:
    if (!bool2)
    {
      if (paramDouble2 < this.m.y)
      {
        localDouble.height = (this.m.y - paramDouble2);
        if (bool2) {
          break label206;
        }
        localDouble.y = paramDouble2;
        if (!bool1) {
          break label204;
        }
      }
      if (bool2) {}
    }
    else if (localDouble.y < this.m.y)
    {
      localDouble.y = this.m.y;
    }
    localDouble.height = (paramDouble2 - this.m.y);
    label204:
    label206:
    return localDouble;
  }
  
  protected abstract void selectionBoxAction(Rectangle paramRectangle, boolean paramBoolean);
  
  protected void a(Rectangle2D.Double paramDouble, boolean paramBoolean)
  {
    selectionBoxAction(new Rectangle((int)paramDouble.x, (int)paramDouble.y, (int)paramDouble.width, (int)paramDouble.height), paramBoolean);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.jf

 * JD-Core Version:    0.7.0.1

 */